// RUN_PIPELINE_TILL: FRONTEND
// COMPARE_WITH_LIGHT_TREE
// DIAGNOSTICS: -UNUSED_PARAMETER

//KT-5971 Missing error when fun argument is safe call

fun foo(i: Int) {}

fun test(s: String?) {
    foo(<!ARGUMENT_TYPE_MISMATCH!>s?.length<!>)
}

/* GENERATED_FIR_TAGS: functionDeclaration, nullableType, safeCall */
